<?php
    error_reporting(E_ERROR);
    ini_set("display_errors","Off");
    header('content-type:application:json;charset=utf8'); 
    header('Access-Control-Allow-Origin:*'); 
    header('Access-Control-Allow-Methods:POST, GET'); 
    header('Access-Control-Allow-Headers:x-requested-with,content-type');
    require_once "jssdk.php";
    $url = $_GET['url'];
    # appid
    # appSecret
    $jssdk = new JSSDK("wx685a757ba6c7974f", "098e13dc975704e7b59fe036a0ff4d2a");
    $signPackage = $jssdk->GetSignPackage($url);
    echo json_encode($signPackage);
    return;
?>